import { createWebHistory, createRouter } from 'vue-router'

const routes = [
  { 
    path: '/',
    name: 'Pandian',
    component: () => import('../components/pandian.vue')
  },
  { 
    path: '/list',
    name: 'PandianList',
    component: () => import('../components/pandianlist.vue')
  }
]


const router = createRouter({
  history: createWebHistory(), // 修正为浏览器历史模式
  routes,
})

export default router